<!DOCTYPE html>
<html style="height: 100%">
   <head>
       <meta charset="utf-8">
       <style>
        #button {
             position: relative;
             left: 800px;
             top: 600px;
             display: inline-flex; 
             justify-content: center; 
             align-items: center; 
             margin-right: 200px; 
             border: 1px solid transparent; 
             border-radius: 4px; 
             padding: .5em 1em; 
             color: #fff; 
             background-color: #9555af;
         } 
    </style>
   </head>
   <body style="height: 100%; margin: 0">
     <div id="container" style="height: 100%"></div>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-gl/echarts-gl.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-stat/ecStat.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/dataTool.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/china.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/world.js"></script>
       <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=ZUONbpqGBsYGXNIYHicvbAbM"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/bmap.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/simplex.js"></script>
       <script type="text/javascript">
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};
option = null;
option = {
    title : {
        text: '虚词表示图',
        x:'center'
    },
    tooltip : {
        trigger: 'item',
        formatter: "{a} <br/>{b} : {c} ({d}%)"
    },
    legend: {
        orient: 'vertical',
        left: 'left',
        data: ['也','为','以','所','因','且','而','则','与','其','之','何','于','乎','者','若','乃','焉']
    },
    series : [
        {
            name: '访问来源',
            type: 'pie',
            radius : '55%',
            center: ['20%', '50%'],
            data:[
                {value:1632, name:'也'},
                {value:339, name:'与'},
                {value:277, name:'之'},
                {value:262, name:'因'},
                {value:191, name:'为'},
                {value:181, name:'若'},
                {value:117, name:'且'},
                {value:90, name:'而'},
                {value:70, name:'则'},
                {value:62, name:'其'},
                {value:47, name:'者'},
                {value:47, name:'于'},
                {value:46, name:'乃'},
                {value:42, name:'所'},
                {value:39, name:'以'},
                {value:14, name:'何'},
                {value:2, name:'乎'},
                {value:2, name:'焉'}
            ],
            itemStyle: {
                emphasis: {
                    shadowBlur: 10,
                    shadowOffsetX: 0,
                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                }
            }
        },
        {
            name: '访问来源',
            type: 'pie',
            radius : '55%',
            center: ['50%', '50%'],
            data:[
                {value:2219, name:'也'},
                {value:406, name:'与'},
                {value:326, name:'因'},
                {value:259, name:'若'},
                {value:232, name:'且'},
                {value:218, name:'之'},
                {value:173, name:'为'},
                {value:68, name:'而'},
                {value:35, name:'于'},
                {value:28, name:'以'},
                {value:28, name:'所'},
                {value:28, name:'者'},
                {value:24, name:'其'},
                {value:23, name:'乃'},
                {value:12, name:'则'},
                {value:9, name:'何'},
                {value:1, name:'乎'},
                {value:1, name:'焉'}
            ],
            itemStyle: {
                emphasis: {
                    shadowBlur: 10,
                    shadowOffsetX: 0,
                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                }
            }
        },
        {
            name: '访问来源',
            type: 'pie',
            radius : '55%',
            center: ['80%', '50%'],
            data:[
                {value:1955, name:'也'},
                {value:263, name:'若'},
                {value:226, name:'因'},
                {value:185, name:'与'},
                {value:174, name:'为'},
                {value:78, name:'且'},
                {value:65, name:'之'},
                {value:59, name:'而'},
                {value:31, name:'所'},
                {value:21, name:'以'},
                {value:18, name:'则'},
                {value:17, name:'何'},
                {value:15, name:'其'},
                {value:12, name:'于'},
                {value:8, name:'者'},
                {value:4, name:'焉'},
                {value:2, name:'乎'},
                {value:1, name:'乃'}
            ],
            itemStyle: {
                emphasis: {
                    shadowBlur: 10,
                    shadowOffsetX: 0,
                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                }
            }
        }
    ]
    
};
;
if (option && typeof option === "object") {
    myChart.setOption(option, true);
}
       </script>
   </body>
</html>